import request from './index';

export interface registerDataType {
    username:number | string,
    password:number | string,
    uuid: number | string,
    captchcode: number | string
}

export const captchaImgApi = () => request.get('/api/captchaImg');

export const registerApi = (data:registerDataType) => request({
    url:'/api/register',
    method:'post',
    data
});

export const loginApi = (data:registerDataType) => request({
    url:'/api/login',
    method:'post',
    data
});